package musicstore.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import musicstore.entity.Album;

public interface AlbumMapper {
	void add(Album album);
	void update(Album album);
	void delete(int id);
	Album fetchById(int id);
	List<Album> getAlbums(int genreId);
	List<Album> getAlbumspage(
			@Param("genreId")int genreId,
			@Param("skips")int skips,
			@Param("takes")int takes);
	List<Album> fetchAlbumspage(
			@Param("genreId")int genreId,
			@Param("title")String title,
			@Param("skips")int skips,
			@Param("takes")int takes);
	int getRows(@Param("genreId")int genreId,
			@Param("title")String title);
}
